package com.hspedu.mhl.domain;

import java.time.LocalDateTime;
import java.util.Date;

public class Bill {
    //    id INT PRIMARY KEY AUTO_INCREMENT,
//    billid VARCHAR(50) NOT NULL DEFAULT '',
//    companion_id INT NOT NULL DEFAULT 0,
//    nums INT NOT NULL DEFAULT 0,
//    money DOUBLE NOT NULL DEFAULT 0,
//    courtId INT NOT NULL DEFAULT 0,
//    billDate DATETIME NOT NULL,
//    state VARCHAR(50) NOT NULL DEFAULT ''
    private Integer id;
    private String billid;
    private Integer companion_id;
    private Integer nums;
    private Double money;
    private Integer courtId;
    private LocalDateTime billDate;  // 使用 LocalDateTime
    private String state;

    public Bill() {
    }

    public Bill(Integer id, String billid, Integer companion_id, Integer nums, Double money, Integer courtId,
                LocalDateTime billDate, String state) {
        this.id = id;
        this.billid = billid;
        this.companion_id = companion_id;
        this.nums = nums;
        this.money = money;
        this.courtId = courtId;
        this.billDate = billDate;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillid() {
        return billid;
    }

    public void setBillid(String billid) {
        this.billid = billid;
    }

    public Integer getCompanion_id() {
        return companion_id;
    }

    public void setCompanion_id(Integer companion_id) {
        this.companion_id = companion_id;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getCourtId() {
        return courtId;
    }

    public void setCourtId(Integer courtId) {
        this.courtId = courtId;
    }

    public LocalDateTime getBillDate() {
        return billDate;
    }

    public void setBillDate(LocalDateTime billDate) {
        this.billDate = billDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "id=" + id +
                ", billid='" + billid + '\'' +
                ", companion_id=" + companion_id +
                ", nums=" + nums +
                ", money=" + money +
                ", courtId=" + courtId +
                ", billDate=" + billDate +
                ", state='" + state + '\'' +
                '}';
    }
}
